{% extends "registration/base.html" %}

{% block content %}
<form method="post" action="{% url login %}">
    {% csrf_token %}
    <table>
        <tr>
            <td>{{ form.username.label_tag }}</td>
        </tr>
        <tr>
            <td>{{ form.username }}</td>
        </tr>
        <tr>
            <td>{{ form.password.label_tag }}</td>
        </tr>
        <tr>
            <td>{{ form.password }}</td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="Login" id="id_login" />
                <input type="hidden" value="{{ next }}" name="next" />
            </td>
        </tr>
    </table>
</form>
{% if form.errors %}
<p class="error">Numele de utilizator sau parola nu sunt corecte. Te rog mai incearca.</p>
{% endif %}
{% endblock content %}
